﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
         
            using (SqlConnection connection = new SqlConnection( ConfigurationManager.AppSettings["ConnectionString"]))
            {
                using (SqlCommand cmd = new SqlCommand("select * from member_t", connection))
                {
                    try
                    {
                        connection.Open();
                        int rows = cmd.ExecuteNonQuery();
                        
                    }
                    catch (System.Data.SqlClient.SqlException ex)
                    {
                        connection.Close();
                        throw ex;
                    }
                }
            }
        }
    }

